package com.core.test.tree;

import java.util.ArrayList;
import java.util.List;

public class NodeDao {
	public static List<Node> nodelist = new ArrayList<Node>();
	
	public void addNode(Node node) {
		nodelist.add(node);
	}
	
	public void delNode(int index) {
		nodelist.remove(index);
	}
	
	public List<Node> findAllNOde() {
		return nodelist;
	}
	
	public Node findNode(int index) {
		return nodelist.get(index);
	}
}
